package com.google.android.exoplayer2.metadata.id3;

import android.os.Parcel;
import android.os.Parcelable.Creator;
import androidx.annotation.Nullable;
import java.util.Arrays;
import o.anr;

public final class ApicFrame extends Id3Frame {
    public static final Creator<ApicFrame> CREATOR = new Creator<ApicFrame>() {
        public /* synthetic */ Object createFromParcel(Parcel parcel) {
            return ॱ(parcel);
        }

        public /* synthetic */ Object[] newArray(int i) {
            return ˊ(i);
        }

        public ApicFrame ॱ(Parcel parcel) {
            return new ApicFrame(parcel);
        }

        public ApicFrame[] ˊ(int i) {
            return new ApicFrame[i];
        }
    };
    public final int ˋ;
    @Nullable
    public final String ˎ;
    public final byte[] ˏ;
    public final String ॱ;

    public ApicFrame(String str, @Nullable String str2, int i, byte[] bArr) {
        super("APIC");
        this.ॱ = str;
        this.ˎ = str2;
        this.ˋ = i;
        this.ˏ = bArr;
    }

    ApicFrame(Parcel parcel) {
        super("APIC");
        this.ॱ = (String) anr.ˎ(parcel.readString());
        this.ˎ = (String) anr.ˎ(parcel.readString());
        this.ˋ = parcel.readInt();
        this.ˏ = (byte[]) anr.ˎ(parcel.createByteArray());
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        ApicFrame apicFrame = (ApicFrame) obj;
        if (this.ˋ == apicFrame.ˋ && anr.ˎ(this.ॱ, apicFrame.ॱ) && anr.ˎ(this.ˎ, apicFrame.ˎ) && Arrays.equals(this.ˏ, apicFrame.ˏ)) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        int hashCode;
        int i = 0;
        int i2 = (this.ˋ + 527) * 31;
        if (this.ॱ != null) {
            hashCode = this.ॱ.hashCode();
        } else {
            hashCode = 0;
        }
        hashCode = (hashCode + i2) * 31;
        if (this.ˎ != null) {
            i = this.ˎ.hashCode();
        }
        return ((hashCode + i) * 31) + Arrays.hashCode(this.ˏ);
    }

    public String toString() {
        return this.ʻ + ": mimeType=" + this.ॱ + ", description=" + this.ˎ;
    }

    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(this.ॱ);
        parcel.writeString(this.ˎ);
        parcel.writeInt(this.ˋ);
        parcel.writeByteArray(this.ˏ);
    }
}
